docker 服务的配置
{
    
直接运行 docker 

参数              
-D, --debug=false    是否启用调试模式 默认是不启用
-H,--host=[]   设定监听  Daemon socket(s) to connect to.  
--tls=false    启用TSL Enable or disable TLS. By default, this is false.



将docker配置成服务
{
在ubuntu中
 配置文件位置 /etc/default/docker  (ubuntu 14 )
 
通过修改  DOCKER_OPTS 的值来指定 docker 的一些启动参数

DOCKER_OPTS="-D --tls=true --tlscert=/var/docker/server.pem --tlskey=/var/docker/serverkey.pem -H tcp://192.168.59.3:2376"


    Enable -D (debug) mode
    Set tls to true with the server certificate and key specified using --tlscert and --tlskey respectively
    Listen for connections on tcp://192.168.59.3:2376

By default, Upstart jobs are located in /etc/init and 
the docker Upstart job can be found at /etc/init/docker.conf.

By default logs for Upstart jobs are located in /var/log/upstart 
and the logs for docker daemon can be located at /var/log/upstart/docker.log
    
}

 
在centos 中配置文件位置

centos6
{
/etc/sysconfig/docker
    other_args 在centos6 中通过 该参数来配置docker的启动 

}

 

在centos7
{
  创建配置文件存放目录
  /etc/systemd/system/docker.service.d 
  
  编辑配置文件
  
    OPTIONS  在centos7 里面通过该参数来指定docker服务的启动参数
  
  vim /etc/systemd/system/docker.service.d/docker.conf
}

Ubuntu
{

}
        
https://docs.docker.com/engine/admin/
http://wiki.jikexueyuan.com/project/docker/articles/basics.html

}


